﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CRM.MODEL
{


    #region 存储过程 Pro_GetPartsModels 的相关参数
    /// <summary>
    /// Pro_GetPartsModels 的相关参数
    ///PartsModels
    ///xialei
    /// </summary>
    [Serializable]
    public struct GetPartsModels
    {
        //参数定义	 		     
        public const string IDPARM = "@ID";
        public const string BRANDSIDPARM = "@BrandsID";
        public const string MODELNAMEPARM = "@ModelName";
        public const string MODELDISPLAYNAMEPARM = "@ModelDisplayName";
        public const string ISAVAILABLEPARM = "@IsAvailable";
        public const string CREATEBYPARM = "@CreateBy";
        public const string CREATETIMEPARM = "@CreateTime";
        public const string LASTMODIFYBYPARM = "@LastModifyBy";
        public const string LASTMODIFYTIMEPARM = "@LastModifyTime";
        public const string KEYVALUEPARM = "@KeyValue";
        public const string PARTSIDPARM = "@PartsID";
        //分页参数定义  
        public const string ORDERSTRING_PARM = "@OrderString";
        public const string PAGESIZE_PARM = "@PageSize";
        public const string CURRENTPAGEINDEX_PARM = "@CurrentPageIndex";
        public const string TOTALITEMS_PARM = "@TotalItems";

        //字段属性设置
        private object ID;
        public object IDVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ID); }
            set
            { this.ID = value; }
        }

        private object BrandsID;
        public object BRANDSIDVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.BrandsID); }
            set
            { this.BrandsID = value; }
        }

        private object ModelName;
        public object MODELNAMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ModelName); }
            set
            { this.ModelName = value; }
        }

        private object ModelDisplayName;
        public object MODELDISPLAYNAMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ModelDisplayName); }
            set
            { this.ModelDisplayName = value; }
        }

        private object IsAvailable;
        public object ISAVAILABLEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.IsAvailable); }
            set
            { this.IsAvailable = value; }
        }

        private object CreateBy;
        public object CREATEBYVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateBy); }
            set
            { this.CreateBy = value; }
        }

        private object CreateTime;
        public object CREATETIMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateTime); }
            set
            { this.CreateTime = value; }
        }

        private object LastModifyBy;
        public object LASTMODIFYBYVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastModifyBy); }
            set
            { this.LastModifyBy = value; }
        }

        private object LastModifyTime;
        public object LASTMODIFYTIMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastModifyTime); }
            set
            { this.LastModifyTime = value; }
        }
        private object KeyValue;
        public object KEYVALUEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.KeyValue); }
            set
            { this.KeyValue = value; }
        }
        private object PartsID;
        public object PARTSIDVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.PartsID); }
            set
            { this.PartsID = value; }
        }


        //分页属性设置
        private object OrderString;
        public object ORDERSTRING_VALUE
        {
            get { return CRM.UTIL.Common.TransQuote(this.OrderString); }
            set { this.OrderString = value; }
        }

        private object PageSize;
        public object PAGESIZE_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.PageSize, CRM.UTIL.Common.DefaultPageSize); }
            set { this.PageSize = value; }
        }

        private object CurrentPageIndex;
        public object CURRENTPAGEINDEX_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.CurrentPageIndex, CRM.UTIL.Common.DefaultCurrentPageIndex); }
            set { this.CurrentPageIndex = value; }
        }

        private object TotalItems;
        public object TOTALITEMS_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.TotalItems); }
            set { this.TotalItems = value; }
        }

    }
    #endregion

    #region 存储过程 Pro_EditPartsModels 的相关参数
    /// <summary>
    /// Pro_EditPartsModels 的相关参数
    ///PartsModels
    ///xialei
    /// </summary>
    [Serializable]
    public struct EditPartsModels
    {
        //动作参数
        public const string ACTION_PARM = "@Action";
        //错误信息参数
        public const string ERRMSG_PARM = "@errMsg";

        public const string OUTID_PARM = "@OutID";
        ////表字段参数
        public const string IDPARM = "@ID";
        public const string BRANDSIDPARM = "@BrandsID";
        public const string MODELNAMEPARM = "@ModelName";
        public const string MODELDISPLAYNAMEPARM = "@ModelDisplayName";
        public const string ISAVAILABLEPARM = "@IsAvailable";
        public const string CREATEBYPARM = "@CreateBy";
        public const string CREATETIMEPARM = "@CreateTime";
        public const string LASTMODIFYBYPARM = "@LastModifyBy";
        public const string LASTMODIFYTIMEPARM = "@LastModifyTime";


        //动作属性
        private object Action;
        public object ACTION_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Action); }
            set
            { this.Action = value; }
        }

        //错误信息属性
        private object errMsg;
        public object ERRMSG_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.errMsg); }
            set
            { this.errMsg = value; }
        }

        private object OutID;
        public object OUTID_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.OutID); }
            set { this.OutID = value; }
        }

        //表字段属性
        private object ID;
        public object ID_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ID); }
            set
            { this.ID = value; }
        }

        private object BrandsID;
        public object BRANDSID_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.BrandsID); }
            set
            { this.BrandsID = value; }
        }

        private object ModelName;
        public object MODELNAME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ModelName); }
            set
            { this.ModelName = value; }
        }

        private object ModelDisplayName;
        public object MODELDISPLAYNAME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ModelDisplayName); }
            set
            { this.ModelDisplayName = value; }
        }

        private object IsAvailable;
        public object ISAVAILABLE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.IsAvailable); }
            set
            { this.IsAvailable = value; }
        }

        private object CreateBy;
        public object CREATEBY_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateBy); }
            set
            { this.CreateBy = value; }
        }

        private object CreateTime;
        public object CREATETIME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateTime); }
            set
            { this.CreateTime = value; }
        }

        private object LastModifyBy;
        public object LASTMODIFYBY_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastModifyBy); }
            set
            { this.LastModifyBy = value; }
        }

        private object LastModifyTime;
        public object LASTMODIFYTIME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastModifyTime); }
            set
            { this.LastModifyTime = value; }
        }

    }
    #endregion
}
